Apparatus and method for segmentation and time synchronization of the transmission of a multiple program multimedia data stream

ABSTRACT

Method and apparatus are provided for segmenting a multiple program multimedia digital data stream for transmission over a distribution communications network. Each program multimedia digital data stream includes sequential transport system (TS) packets with program clock references (PCRs) at a set time interval and a program identification (PID) associated with the PCRs. The multiple program multimedia digital data stream is received. The TS packets are decoded to identify the program clock references (PCRs). A selected number N of TS packets are identified. The multimedia digital data stream into frames responsive to both the identified number N of TS packets and the identified PCRs. A program identification (PID) associated with one of the PCRs is selected for timing the transmission of segmented multiple program multimedia digital data stream. A time interval following an identified PCR associated with the selected program identification PID is identified and compared with the set time interval between the program clock references (PCRs). Responsive to the identified time interval being greater than the set time interval, a new program identification (PID) is selected for timing the transmission of segmented multiple program multimedia digital data stream.

This is a continuation of application Ser. No. 08/447,758 filed May 23, 1995, now abandoned, which is a continuation in part of Ser. No. 08/382,905 filed Feb. 3, 1995, now U.S. Pat. No. 5,533,021.

FIELD OF THE INVENTION

The present invention relates to a method and apparatus for segmenting and timing the transmission of a multiple program multimedia digital data stream over a distribution communications network.

DESCRIPTION OF THE PRIOR ART

Multimedia communications involve the blending together of computer data processing, audio/video, and display technology in an interactive environment. Evolving multimedia applications such as desktop computer conferencing and video-on-demand bring with them the need for network access to shared or common real-time data. The "real-time" aspect of data can be defined as the characteristic of data which must be delivered on-time, that is, late and early delivery of data are both useless.

A Moving Pictures Experts Group MPEG-2 standard for multimedia stream transport is described in "MPEG-2" International Organization for Standardization; Organization Internationale De Normalisation (ISO/IEC ITC1/SC29/WG11) Coding of Moving Pictures and Associated Audio. The MPEG-2 standard has defined a system layer that integrates multiple media sources into a single data stream with integrated time stamps (PCRs). The MPEG-2 standard has defined a fixed and variable rate encoding scheme for video streams that allows for variable size and quality of video streams. The MPEG-2 standard has defined a transport mechanism for other video encoding schemes, for example, MPEG-1. The MPEG-2 multimedia stream is transported over a digital network which uses the ITU standards commonly referred to as Asynchronous Transfer Mode (ATM). The Asynchronous Transfer Mode (ATM) network described in "Asynchronous Transfer Mode: Solution for Broadband ISDN", M de Prycker, Ellis Horwood, 1991 is an internationally agreed upon technique for transmission, multiplexing and switching in a broadband network. It uses fixed size cells as a unit of transmission.

ATM networks are designed to support the integration of high quality voice, video, and high speed data traffic. To the end-user, it promises to provide the ability to transport connection-oriented and connectionless traffic at constant or variable bit rates. It allows for allocation of bandwidth on demand and intends to provide negotiated Quality-of-Service (QOS). To a network provider, it enables the transport of different traffic types through the same network. In order for a network to meet QOS requirements as set by the user for a session, the network must have sufficient information about the traffic characteristics of the session. This may be approximated by (but not limited to) three basic parameters: 1) average transmission rate, 2) peak transmission rate, and 3) the interval over which the data may be transmitted at peak rate. As a part of the QOS contract with the network, all sessions must abide by the traffic parameters and not violate these parameters in order for the network to guarantee QOS to all the users. This gives rise to a complex scheduling problem when many sessions are established over a network link, which requires that each session's contract with the network not be violated. At the same time, all sessions must get the desired capacity from the network. This problem is fairly complex particularly when it involves a large number of sessions with a wide range of traffic descriptors. The problem is further compounded with the fact that different sessions require different QOS. Therefore, in case of contention, where a multiplicity of sessions have data to be transmitted and their individual contracts with the network will allow them to transmit, sessions requiring stricter QOS guarantee must be given priority over other sessions.

Important aspects of data delivery include time-synchronization, bandwidth or throughput and latency. The MPEG-2 transport stream is a series of 188 byte packets which must be delivered to the receiver for decoding. At least one 188 byte packet every 100 milliseconds includes the time stamp or program clock reference (PCR). The time stamps need to arrive at the receiver with a minimum of jitter introduced by the server transmitter. Improved transmission efficiency is provided when at least two Transport Stream (TS) 188-byte packets are sent per frame of data over the ATM network. The MPEG-2 layer provides data to the transport layer. With ATMAAL-5 (ATM Adaptation Layer for simple and efficient transport of frame traffic), each ATM cell carries 48 bytes. In each frame, framing data of 8 bytes must be carried in the last cell of the AAL-5 frame. With one TS 188-byte packet per frame, the frame includes 196 bytes and requires 5 ATM cells with 44 bytes of padding providing a transport efficiency of about 70.9%. With two TS 188-byte packets per frame, the frame includes 384 bytes and requires 8 ATM cells providing a transport efficiency of about 88.6%. With three through thirteen TS 188-byte packets per frame, the frame includes 572-2452 bytes and requires 12-52 ATM cells providing a transport efficiency of about 88.6%. Fourteen through seventeen TS 188-byte packets per frame provide a transport efficiency above 90%.

The time stamps need to arrive at the receiver with a minimum of jitter introduced by the network server transmitter. To reduce the jitter of the clock recovery at the receiver, a requirement has been established that any MPEG-2 188 byte packet that contains a time stamp (PCR) must terminate the AAL-5 frame. Because PCRs can occur in any frame, if more than one MPEG-2 packets are normally bundled, the bundling may be variable. When the bundling is variable, even a fixed rate multi-media stream becomes variable rate. That means that the task of transmitting MPEG-2 frames in an isochronous mode becomes a challenge. In addition to the problem for transmitter to transmit with minimum jitter in the PCRs to make the receive clock recovery simple and robust, a need exists to reduce the computational overhead of providing the stream.

Processing overhead for traffic effects both transmitter and receiver. Processing overhead can in a simplified form be given by A*number of frames+B*number of bytes. In many cases, the factor A is 500-10000 times greater than the factor B. This means that in environments where processing power is limited, the frames should be as big as possible.

Multiple program streams can be multiplexed on the single multimedia transport system stream by the MPEG-2 transport system layer. Each of the multiple program streams has a program identification (PID). The PID is associated with any TS packet that contains the program clock reference (PCR). To save information for all the multiple PIDs associated with a single PCR could be impossible or require excessive system resources, because the number of program streams can grow without practical bound in streams that are being sourced from outside of the distribution network. Using a PCR for just one of the PIDs has the problem that program streams can be added and subtracted from the MPEG-2 system stream without warning. Asynchronous timers are expensive to implement.

A need exists to transport the MPEG-2 transport stream with accurate timing and with minimal use of system resources.

SUMMARY OF THE INVENTION

Important objects of the present invention are to provide an improved method for segmenting and time synchronization of the transmission of a multiple program multimedia digital data stream over a distribution communications network.

In brief, the objects and advantages of the invention are achieved by a method and apparatus for segmenting a multiple program multimedia digital data stream for transmission over a distribution communications network. Each program multimedia digital data stream includes sequential transport system (TS) packets with program clock references (PCRs) at a set time interval and a program identification (PID) associated with the PCRs. The multiple program multimedia digital data stream is received. The TS packets are decoded to identify the program clock references (PCRs). A selected number N of TS packets are identified. The multimedia digital data stream into frames responsive to both the identified number N of TS packets and the identified PCRs. A program identification (PID) associated with one of the PCRs is selected for timing the transmission of segmented multiple program multimedia digital data stream. A time interval following an identified PCR associated with the selected program identification PID identified and compared with the set time interval between the program clock references (PCRs). Responsive to the identified time interval being greater than the set time interval, a new program identification (PID) is selected for timing the transmission of segmented multiple program multimedia digital data stream.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention together with the above and other objects and advantages may best be understood from the following detailed description of the preferred embodiments of the invention illustrated in the drawings, wherein:

FIG. 1 is a block diagram representation illustrating a digital video-on-demand system of the type used with the apparatus and method for segmenting and timing the transmission of a stream of multimedia digital data in accordance with the present invention;

FIG. 2 is a block diagram representation illustrating multiple multimedia sources; a multimedia system layer and a multimedia transport arranged in accordance with the MPEG-2 Standard;

FIG. 3 is a block diagram representation illustrating generation of the MPEG-2 data stream in accordance with the present invention;

FIG. 4 is a block diagram representation illustrating a MPEG-2 system including apparatus employed for performing the method for segmenting and timing the transmission of a stream of multimedia digital data in accordance with the present invention;

FIG. 5 is a chart illustrating transport system (TS) packet stream sequence mapped into 5/8 cell AAL-5 PDUs;

FIG. 6 is a chart illustrating transport system (TS) packet stream sequence mapped into fixed size AAL-5 Protocol Data Units (PDUs);

FIG. 7 is a chart illustrating the transmission timing of the MPEG-2 data stream in accordance with the present invention;

FIG. 8 is a block diagram representation of a multimedia server of the system of FIGS. 1 and 4 illustrating the apparatus of the present invention;

FIG. 9 is a flow chart illustrating a data supply process of the present invention performed by a data supply processor of FIG. 8;

FIGS. 10, 11 and 12 are flow charts illustrating scheduler processes performed by a transmission session scheduler of FIG. 8;

FIG. 13 is a flow chart illustrating cell segmentation method of the present invention performed by a cell segmenter of FIG. 8;

FIG. 14 is a block diagram representation of a multimedia receiver of the system of FIGS. 1 and 4 illustrating the apparatus of the present invention;

FIG. 15 is a flow chart illustrating a protocol data unit arrival batch process of the present invention;

FIG. 16 is a diagram illustrating a format of MPEG-2 transport system (TS) packets; and

FIGS. 17, 18, 19, 20, 21, 21A, 22 and 23 are flow charts illustrating an alternative cell segmentation method of the present invention performed by a cell segmenter of FIG. 8.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Having reference now to the drawings, in FIG. 1 there is shown a block diagram representation of a video-on-demand multimedia distribution system generally designated by the reference character 10 which may be employed to implement the method of the present invention. The multimedia distribution system 10 includes a digital/analog communications and distribution network 12 that is capable of interconnecting all of the other elements of the system. Network 12 may have digital and analog components and may carry different communication flows with the same or different transport mechanisms. The multimedia distribution system 10 includes a client function or customer interface represented by a first output device or devices 14, an associated set top box 16; a second output device or devices 18, an associated decoder/receiver 20 and a third output device or devices and an associated computer station 24.

Content is selected at the client function and display/presentation of the multimedia stream occurs at the client. When the output device 14 is implemented with a television set, the set top box 16 or the box on top of the television set 14 acts as a converter from the network to the television and the active conversion is embodied in the set top box. The receiver of digital data may be at the set top box 16 or may be embedded in the communications network as illustrated with the decoder/receiver 20 used with output device or devices 18. For other multimedia applications, the digital data is received by computer station 24 and presented with output device or devices 22. A multimedia stream server 26 takes media streams from a storage device 28, a media encoder 30, or from an out-of-network source or link 32, and injects these streams into the distribution network 12 with the appropriate format and timing in accordance with features of the invention. Features of the invention for providing the stream of digital data into a distribution system 10 with the appropriate format and timing can be implemented by the multimedia server function 26.

A billing and/or session control function 34 is responsible for communicating with the client systems, connecting clients to servers, and whatever billing and scheduling as needed. The control function 34 provides control signals via lines labelled CONTROL to the multimedia steam servers 26. The control function 34 can be a distributed or centralized implementation.

Referring to FIGS. 2 and 3, a multimedia MPEG-2 system transmit layer together with a video source 44, an MPEG-2 video coder-decoder (CODEC) 46, an audio source 48, an MPEG-2 audio CODEC 50 and a private data source 52 and a multimedia storage or transport 54 and MPEG-2 data stream generation arranged in accordance with the MPEG-2 Standard are shown. The video I/O source 44 is applied to the MPEG-2 Video (CODEC) 46 that provides a coded video digital bit stream indicated at a line 46A. The MPEG-2 Video Standard specifies the coded bit stream for high-quality digital video and that is compatible with the MPEG-1 Video Standard (ISO IEC IS 11172-2). MPEG-2 also supports interlaced video formats, increased image quality, several picture aspect ratios, including 43 and 16 and a number of other advanced features, including those needed for HDTV. MPEG-2 Video can be defined in terms of profiles, each of which will support the features needed by a different class of applications.

The audio I/O source 48 is applied to the MPEG-2 audio CODEC 50 that provides a coded audio digital bit stream indicated at a line 50A. MPEG-2 Audio Standard coding supports up to five full bandwidth channels 0, left, right, center, and two surround channels, plus an enhancement channel and/or up to seven commentary multi-lingual channels. The MPEG-2 Audio Standard also provides improved quality coding of monaural and conventional stereo signals for bit rates at or below 64 Kbits/second (Kbps).

Multimedia system transmit layer 42 performs packetized stream control, synchronization and multiplexing of the applied audio, video and private data streams. The MPEG-2 Systems Standard specifies how to combine multiple audio, video and private-data streams into a single multiplexed stream. Multimedia system transmit layer 42 is designed to support a wide range of broadcast interactive communications, computing and storage applications. MPEG-2 Systems Standard defines two kinds of streams, Program and Transport.

Typically the multimedia systems transmit layer processes the compressed video codec, audio codec and private data streams 46A, 50A, 52A in two steps. First the codec data (elementary) streams are combined with system-level information including time stamps (PCRs), program identifier, sequence numbers and an error correcting mechanism, and packetized to produce packetized elementary streams (PESs). Second the PESs are combined to form either a Program Stream or a Transport Stream. The MPEG-2 Program Stream supports the creation of a single audio-visual program which could have multiple views and multichannel audio. It utilizes variable-length packets and is designed for transmission in relatively error-free environments.

The MPEG-2 Transport Stream multiplexes a number of programs comprising video, audio and private data for transmission and storage using a wide variety of media. It performs packetized stream control and synchronization. It is designed for transmission in a busy or noisy environment and utilizes a fixed-size 188-byte packet with fixed and variable rate encoding schemes for video streams. The MPEG-2 encoding scheme allows for variable size and quality of video streams and provides a transport mechanism for other video encoding schemes, e.g., MPEG-1. The MPEG-2 Transport Stream utilizes an embedded program clock reference (PCR) which allows multiple streams to be synchronized and allows the transmitter (server 26) and the receiver (decoder/receiver 20) to run synchronously with each other.

As illustrated in FIG. 3, the MPEG-2 system transmit layer 42 integrates the multiple media sources into a single data stream 42A with integrated time stamps (PCRs). The MPEG-2 transport system (TS) stream is made up of 188-byte packets. At least one TS 188-byte packet every 100 milliseconds includes a time stamp (PCR). This time stamp is used to control the synchronization of playback of the various streams on output devices 14, 18 and 22.

The TS packets 42A are encapsulated into frames or protocol data units (PDUs) including a selected adaptation layer implementation. An AAL-5 encapsulation frame 56 concatenates a negotiated number N of TS packets 42A which are encapsulated based on the location of the PCRs in the TS packets. The selected number 1-N of MPEG-2 TS packets 42A per AAL-5 frame 56 are bundled with an overriding control that the AAL-5 frame terminates when a TS packet 42 containing a PCR is reached. In accordance with the invention, the maximum number N of MPEG-2 TS packets 42A per frame 56 is negotiated at connection setup and is not a predetermined value for all sessions.

In FIG. 3, an ATM cell segmentation layer 58 illustrates enqueued ATM cells 58A each of 48 bytes and that are transmitted over the communications network 12. Data to be transmitted can be enqueued in data blocks that are much larger than the AAL-5 frames 56. Enqueued ATM cells 58A define appropriately sized AAL-5 frames.

Three schemes that can be used to encapsulate MPEG-2 Transport Stream packets (TS Packets) into AAL5 Protocol Data Units (PDUs) include a 5/8 Cell PCR aware scheme where either one or two TS packets are encapsulated in each ATMAAL-5 frame; a fixed N (where N is the number of TS packets 42A to be encapsulated in each ATMAAL-5 PDU) scheme and the preferred negotiated N PCR aware method of the invention.

In the first 5/8 Cell PCR aware scheme normally two MPEG-2 TS packets are encapsulated into exactly 8 ATM Cells using AAL-5. No stuffing is required. However, if the first TS packet 42A entering the AAL carries a PCR, it is immediately encapsulated into five ATM cells and forwarded. Forty-four bytes of stuffing are required.

In the second fixed N scheme, a fixed number of MPEG-2 Transport Stream packets are encapsulated into a single AAL5 PDU with the current assumption that 2 MPEG-2 TS packets per AAL5 PDU would be a lower bound on that fixed number. If a larger number of TS packets/PDU is used the transmission efficiency can be improved.

The AAL 5 message mode packaging jitter introduced by the two schemes for a maximum of 2 MPEG-2 TS packets/AAL5 PDU is summarized in FIGS. 5 and 6. FIG. 5 illustrates a transport system (TS) packet stream sequence mapped into 5/8 cell AAL-5 PDUs. FIG. 6 illustrates a transport system (TS) packet stream sequence mapped into fixed size AAL-5 Protocol Data Units (PDUs). Each numbered square represents one 188 byte TS packet. The cross-hatched packets signify a TS packet carrying a PCR. The absolute time varies with the data rate. At 1.5 Mbps one packet time is approximately 1 millisecond. At 6 Mbps, the packaging jitter that is introduced is 250 microseconds.

As the number of TS packets 42A/PDU is increased, the potential PCR jitter that will be introduced into the transmission of a stream grows linearly with N. The greater the jitter, the harder it is to recover an accurate clock at the receiving end. The goal in clock recovery is to discern drift between the transmitting clock and the receiving clock. With a large amount of jitter the drift will be masked.

Receive station performance constraints must also be accommodated. The 376 byte AAL5 PDU used in the previous section are rather short. For a custom designed set top 16 or other combined communication and codec subsystem implementations this is probably not a problem. For typical general purpose desktop computers 24 having separate communication and CODEC adapters that use the system bus and/or software to move information between the two subsystems, small PDU sizes represent a significant inhibitor. As an example, a 2 TS packet/AAL5 PDU stream at 6 Mbps would require 1995 (1994.68) transfers across the bus a second. Almost 2000 bus interrupts per second could not be used with most desktop computers.

To accommodate both environments, the preferred negotiated N scheme relaxed the PDU size constraint while still minimizing the packaging jitter introduced by the AAL5 message mode processing. Rather than limit the PDU size to a maximum of 2 TS packets, the negotiated N scheme allows up to N TS packets/AAL5 PDU but always send the TS packet containing the PCR as the last packet in the PDU. One to N TS packets/PDU would always be transmitted. The maximum number of TS packets allowed per PDU can be negotiated using available ATM signalling. The AAL5 Maximum PDU size used corresponding to the selected N allows dynamic adjustments to settop, desktop PC or network constraints at connect time.

The following table gives the Number of Packets between PCRs as the PCRs are inserted into the Transport stream every 100 milliseconds or every 50 milliseconds.

    ______________________________________     Number of Packets between PCRs     Data    TS            PCR every PCR every     Rate    Packets/s     100 ms    50 ms     ______________________________________     1 Mbps   664.89 Pkts/s                            66.49 Pkts                                      33.24 Pkts     2 Mbps  1329.78 Pkts/s                           132.98 Pkts                                      66.49 Pkts     3 Mbps  1994.68 Pkts/s                           199.47 Pkts                                      99.74 Pkts     4 Mbps  2659.57 Pkts/s                           265.96 Pkts                                     132.98 Pkts     5 Mbps  3324.47 Pkts/s                           332.45 Pkts                                     166.22 Pkts     6 Mbps  3989.36 Pkts/s                           398.74 Pkts                                     199.47 Pkts     ______________________________________

Based on the table, the number of TS packets packaged into an AAL5 PDU could be quite large but in reality will be bounded by the loss (gap) tolerance of the CODEC; the PCR jitter accumulation caused by the processing time needed by the codec to handle the TS packets in each PDU that are in front of the packet containing the PCR; the robustness of the receive stations time base recovery capability, and the bus transfer efficiency in desktop computer. The key point is when the maximum PDU size is negotiable (not fixed by edict) these implementation and configuration specific capabilities can be traded off against one another depending on quality level and cost/performance objectives that are trying to be met.

FIG. 4 illustrates a MPEG-2 system 10 including the encode source 30 applying an MPEG-2 TS stream to the storage device 28, such as a direct access storage device (DASD) at a line labelled Fe. A SCSI interface 64 couples the DASD 28 to the ATM server 26, which may be utilized for performing the method for segmenting and timing the transmission of a stream of multimedia digital data in accordance with the present invention. ATM server 26 is illustrated and described with respect to FIGS. 8-13. ATM server 26 applies the ATM data stream 58A to the ATM network 12 at a line labelled Ca. The output data stream from network 12 at a line labelled Ca+(jitter) is received by the decoder subsytem 16, 20 or 24. Decoder 16, 20 or 24 is separated into an ATM cell receiver 70, an AAL-5 reassembly layer 72 and an MPEG-2 receive system layer 74. The MPEG-2 receive system layer 74 provides the decoded data stream 60A at a line Fp to a TS demuliplexor (demux) 76 including a dedicated buffer 78. A decoder 80 and a buffer 82 decodes and applies the video, audio and data to the display 14, 18 or 22.

As shown in FIG. 4 and used in the following example calculations, the terms are defined as follows:

Fe=Encode rate of the MPEG-2 stream.

M=Number of MPEG-2 Transport stream packets per AAL-5 PDU.

C=Number of ATM cells needed to contain M packets.

P=Number of padding bytes required for M packets per PDU.

OH=Overhead bytes including ATM headers (H in FIG. 3)+Padding (PAD in FIG. 3)+AAL-5 Trailer (TR in FIG. 3)

E=Efficiency of MPEG-2 data delivery over ATM based on M.

Tm=Time to transmit M packets at the encoded bitrate.

k=Increase in transmit frequency over encode rate to compensate for bytes of overhead (OH) in the PDU.

Ci=Ideal Cell rate into ATM network.

Fi=Ideal bitrate into ATM network.

Ca=Actual Cell rate into ATM network.

Fa=Actual bitrate into ATM network.

By adding ATM cell header bytes and specific adaptation layer overhead (header/trailer bytes and/or padding), one can derive an ideal bit rate into an ATM network. However, one must then select from the finite steps allowed by the ATM server hardware in selecting a valid rate for the data. Worst-case calculations must also consider the stability of the server clock reference (in ppm), and its associated linearity characteristics. This is additive to the worst-case difference between the encode rate of the stream and the transmit rate into the ATM network.

A single program transport stream payload is assumed for calculating the ideal push rate into the network. The specified encoded bitrate must also include any "space" set aside for ancillary services such as user data. Network jitter is considered to have a negligible long-term affect on decoder buffer management.

The ideal transmission rate for a given MPEG-2 encoded stream is achieved at the receiving end, when, after all transmission overhead bytes have been removed, the payload arrives at the encoded bitrate. For any adaptation layer implementation, the amount of overhead can be defined and used to calculate the ideal bitrate. For AAL-5, it is dependent on two factors, 1) whether or not MPEG-2 Transport Stream Packets are split across sequential PDUs, and 2) the size of the PDU.

Let us assume a push server which is implementing AAL-5, and does not split MPEG-2 packets across a PDU. One can then quickly devise formulas for calculating the number of ATM cells and the resulting overhead generated for a given number of MPEG-2 packets per PDU (in the form of ATM headers, padding, and AAL-5 trailer).

The varying number of padding bytes, along with the constant 8-byte PDU trailer and 5-byte ATM cell header compose the bytes of overhead per PDU.

By calculating the amount of overhead for a given PDU size, we can then calculate the ideal bitrate into the network which would provide the encode rate for the payload after the receive system layer 74 of the receiver. The values can be calculated with the following equations:

C=(M×188)+8) divided by 48 (Payload bytes+AAL-5 Trailer)/48 rounded to next highest integer.

P=(C×48)-(M×188)-8=Padding bytes.

OH=(C×5)+P+8=Total overhead bytes per PDU.

In order to deliver the MPEG-2 payload at the encoded bitrate of the stream, one must first calculate the time required for the payload itself:

Tm=(M×188×8)/Fe=Time to transmit the payload.

To be transparent end-to-end, the overhead bytes must also be transmitted in the same amount of time. Therefore, we can calculate the additional bandwidth "k" needed to send the overhead as follows:

k=(OH×8)/Tm=Overhead bitrate based on bitrate required for encoded bitstream (Fe).

To determine the ideal cell rate into the network, the bandwidth overhead term "k" must be added to the encode bitrate (Fe) and then divided by the number of bits per ATM cell as follows:

Fi=Fe+k=Encode bitrate+overhead

=Fe+(Fe×OH/((M×188))=Ideal bit rate

Ci=Fi/424=Ideal cell rate into ATM network to achieve encode bitrate at RCV.

Since this is likely to result in an unavailable cell rate, one must select a valid cell rate provided by the ATM server hardware. This granularity can be represented by the term "Z", which represents the number of cells in each step that can be selected in the hardware, where typically 1<=Z<2.

Selection of a cell rate can be done either by rounding up to the next higher cell rate or rounding down, depending on which is closer. If the closest step results in a payload bitrate which is less than the encoded rate of the data, starvation will occur at the decoder. An initial latency may be incurred if the bitrate delta is small enough to allow an initial build-up of data queues in the TS demux 76 before starting the decoders. This initial buffering would only delay the starvation and may only be valid for very short clips which can accommodate some degree of start-up latency.

However, a cell rate which delivers the payload at a higher rate than the encoded bitstream is more desirable. Start-up latency is minimized, and cell loss or CRC errors could actually help bring the delta between the two bitrates closer together. Buffer management in the TS demux 76 requires interrogation of queue thresholds to determine what measures are to be taken to avoid overruns.

Let us assume that buffer management techniques in the decoder subsystem and a desire to minimize start-up latency will be adequate reasons to round up to the next valid cell rate available from the adapter. The cell rate step size (Z) will then determine the degree to which the ATM server 26 will over-drive the MPEG-2 payload into the network and thereby the receiver. Using this factor, one can normalize the ideal cell rate (Ci) by first dividing by Z, rounding up, and multiplying by Z to determine the next available cell rate.

Ca={Ci/Z}×Z Actual cell rate into ATM network is Ci normalized to the cell rate steps available in the ATM server.

Worst-case rounding calculations can result in a bitrate which is almost a whole step higher than the desired bitrate. This will bound the maximum over-drive of the payload into the receiver.

Since the result of this normalization will rarely result in an integer cell rate, the requested rate into the ATM network must also be rounded to the next integer cell rate, but this does not affect the actual cell rate of the ATM server 26 as calculated above, and does not affect the payload bitrate.

At the receiving node, the overhead bytes will be stripped by the ATM cell receiver 70, AAL-5 layer 72, and the MPEG-2 system layer 74 before reaching the decoder subsystem. The actual bitrate into this system is Fa=Ca×424. The payload bitrate (Fp) can be described as follows:

Fp/(M×188×8)=Fa/((M×188×8)+(OH×8))

Fp=Fa×((M×188))/((M×188)+OH)

Fp=Fa×E

Fx=Fp-Fe=Excess MPEG-2 data rate.

FIG. 7 provides a graphical representation of the time synchronization process for the transmission of the multimedia data of the invention. The frames containing the PCRs are transmitted right on the time they should be transmitted, regardless of the variation in transmission speed or encoding density.

In FIG. 7, note that the average transmission rate is approximately 0.5% faster than the average required rate if there were no PCR caused expansion of bandwidth requirements. When a PCR is encountered, a cell transmission scheduler 92 in FIG. 8 compares the PCR with a clock which can be synchronized with the network or driven from a precise (10 PPM) crystal, and delays the transmission until just the right time of the embedded timestamp PCR. This way, the PCRs are always transmitted at just the right time to have precise matching of the receive rate that the receiver expects and the actual transmit rate. As a result of having precise and predictable rate matching, a smaller receiver buffer size than otherwise would be required can be used.

Referring now to FIG. 8, there is shown multimedia stream server 26 arranged in accordance with the invention together with a physical or virtual storage 28. Multimedia stream server 26 includes a cell segmenter 90 receiving TS packets from storage 28 and providing the ATM cells output 58A. Data can be enqueued in larger blocks and segmenter 90 takes the blocks and converts them into AAL-5 frames. This is done on two boundaries, a fixed number N of MPEG-2 TS Packets acts as a maximum size for the AAL-5 frame and checking the TS packets to terminate an AAL-5 frame at the end of any TS packet that includes a PCR (timestamp). Multimedia stream server 26 includes a transmission session scheduler 92, an associated time wheel 94 and an optional high priority time wheel 96 and a data supply processor 98.

So that the processor 98 does not have to keep time on all of its streams, the segmentation process can be augmented so that on arbitrary data boundaries the process will receive a request for more data. This notification feature is included as part of the scheduling or data segmentation process. Delay feature of the invention is used to exactly match the transmission of data to the embedded PCR timestamps to transmit the non-PCR TS packets at a slightly higher rate than is predicted by the data-rate of the source, and when a PCR is detected, the transmission of the TS packet containing the PCR is delayed until the time indicated by the PCR is reached. There are a number of ways to achieve this result considering tradeoffs between complexity, accuracy and efficiency that may be understood as follows.

First when a TS packet with a PCR is detected by the segmenter 90, the segmenter compares the PCR with the timer base. If the time has passed, the segmenter transmits the cell, if the time has not passed, the segmenter simply sends nothing and reconsiders the next time that stream is presented for segmentation.

Second the segmenter 90 can do the same transmission delay as above, but on the last cell of a TS packet rather than the first. This increases the amount of state storage required by the segmenter 90, but will greatly increase the accuracy of the PCR times.

Third the segmenter 90 can ask the scheduler 92 to defer scheduling of the stream until the time indicated by the PCR. This requires a rescheduling interface as indicated at a line labelled RESCHEDULE COMMAND C between the segmenter 90 and the scheduler 92; however, the memory utilization efficiency is increased.

Fourth, if the rescheduling is done, the scheduler 92 can reschedule to the higher priority time wheel 96 for just the PCR sensitive cell. This will increase the transmission accuracy when multiple streams are being transmitted over multiple computer stations 24.

The multimedia stream server 26 can be implemented using CMOS technology on a VLSI chip and support data rates up to 622 Mbps.

Referring to FIG. 9, there are shown sequential steps for data supply processing performed by the data supply processor 98 of the present invention that begin at a block 900. A next transmission data block is located in storage as indicated at a block 902. Then it is determined if the process has been completed by checking for more transmission data is available as indicated at a block 904. If more transmission data is not available, then the sequential operations are completed as indicated at a block 906. Otherwise, the located next block of transmission data is supplied to the segmenter storage area as indicated at a block 908. Then data supply processor 98 applies an enqueued for transmission command to the scheduler 92 as indicated at a block 910. Then the data supply processor 98 waits for a request for more transport system data packets from the scheduler 92 at line D or the segmenter 90 at line E as indicated at a block 912. When a request is identified at block 912, then the sequential steps are repeated.

FIGS. 10, 11 and 12 are flow charts illustrating scheduler processes performed by a transmission session scheduler 92. In FIG. 10, the scheduler processes start with waiting for a data supply request as indicated at a block 1000. Scheduler 92 receives a request to enqueue data block for transmission from the data supply processor as indicated at a block 1002. Then a session is identified at a block 1004 and a data block pointer is chained to the session as indicated at a block 1006. Next it determined if the session is active as indicated at a decision block 1008. If an active session is identified at block 1008, then the sequential operations return to block 1000 to wait for request. Otherwise, if an active session is not identified at block 1008, then the session identified at block 1004 is scheduled for transmission at a next transmission opportunity as indicated at a block 1108. Then the sequential operations return to block 1000 to wait for a request.

Referring to FIG. 11, sequential steps for data transmission scheduling performed by the transmission session scheduler 92 begin at a block 1100. Then scheduler 92 waits for a next transmission opportunity as indicated at a block 1102. Next scheduler 92 checks for any high priority sessions scheduled as indicated at a decision block 1104. When a scheduled high priority session is identified at block 1104, then the session is labelled and scheduler 92 provides segmenter 90 with a ready to transmit command at line B as indicated at a block 1106. Then scheduler 92 reschedules at B to low priority as indicated at a block 1108 and returns to block 1102. When a high priority session is not identified at block 1104, scheduler 92 checks for any previous time low priority sessions waiting for transmission as indicated at a decision block 1110. If found, the session is labelled and scheduler 92 provides segmenter 90 with a ready to transmit command at line B at block 1006 and the sequential operations are repeated as before. Otherwise, if no low priority sessions waiting for transmission are identified at block 1100, then scheduler 92 checks for any low priority sessions scheduled as indicated at a decision block 1112. An identified scheduled low priority sessions is labelled and the sequential operations are repeated. Checking for data available for transmit is provided at a decision block 1114. When the data available for transmit is greater than or equal to a predetermined threshold, then the sequential operations continue returning to block 1104. When the data available for transmit is less than the predetermined threshold, then a request for more TS-packets is applied to the data supply processor 98 at line D as indicated at a block 1116. Then the sequential operations continue returning to block 1104.

Referring to FIG. 12, sequential steps for data transmission rescheduling performed by the transmission session scheduler 92 begin with receiving a reschedule request from the segmenter 90 at line C as indicated at a block 1200. Then a session is identified at a block 1202 and removed the time wheel as indicated at a block 1204. Then the session is inserted in the time wheel 94 at a new location.

Referring to FIG. 13, there are shown sequential steps for data segmentation performed by the cell segmenter 90 of the present invention that begin at a block 1300 with waiting for a schedule request from scheduler 92. Then a session is identified at a block 1302 and the session state data is loaded as indicated at a block 1304. Segmenter 90 checks whether the current data block is finished at a decision block 1306. If the current data block is finished, then segmenter 90 checks if the data is less than a threshold value as indicated at a decision block 1308. If so, then more data is requested (line E in FIG. 8) as indicated at a block 1310. Then the next data block is prepared as indicated at a block 1312. Then segmenter 90 checks whether the current cell is last cell in a data frame at a decision block 1314. When the last cell of the frame is identified at block 1314, then segmenter 90 checks if time to send at a decision block 1316. If not the time to send, then a reschedule request at line C is applied to the scheduler 92 as indicated at a block 1318. If the time to send, then segmenter forms the cell and transmits as indicated at a block 1320. Otherwise, if the current cell is not the last cell in a data frame, then the cell is checked to locate a PCR timestamp as indicated at a block 1322. When a PCR is present, then segmenter 92 shortens the frame target length as indicated at a block 1324. Then and when a PCR is not identified at decision block 1322, segmenter forms the cell and transmits at block 1320. Next segmenter stores the session state as indicated at a block 1326.

In accordance with a feature of the invention, frames received by decoder/receiver 20 and computer station 24 advantageously can be put into a queue that will interrupt the processor only after a given number of frames have arrived or after a given time period has elapsed from the receipt of the first frame. This allows the receiving code to batch the receive processing.

FIG. 14 illustrates details of the decoder 20 or 24 used for the batch processing feature of the invention. Decoder 20, 24 includes a PDU arrival batch processing block 98 providing a data queue function 100 and timer function 102. The PDU arrival batch process is used to reduce the number of interrupts that the MPEG-2 TS receive packet system layer 76 must process. The AAL-5 reassembly layer 74 queues the AAL-5 frames on arrival.

Referring also to FIG. 15, sequential steps of the batch processing are shown. If the queue is initially empty as indicated at a block 1500, then the timer 102 is set when a frame arrives as indicated at block 1502. As additional frames arrive, the reassembly layer 74 checks to see if the number of frames in the queue is greater than the threshold for this connection as indicated at a block 1506. When either the timer expires as indicated at a block 1504 or the threshold is crossed, then the reassembly layer raises an interrupt to the MPEG-2 TS receive packet system layer 74 as indicated at a block 1508. When a frame is removed from the queue, the timer function is stopped and reset. When a subsequent frame arrives, the timer 102 is restarted and the batch processing is repeated.

Referring to FIG. 16, the format of the MPEG-2 TS packets is shown. The MPEG-2 TS packet includes 188 bytes or 47 32-bit words. The successive fields of the MPEG-2 TS packet are defined in the following TABLE 1.

                  TABLE 1     ______________________________________     Length     in Bits Description          Hex bits     ______________________________________     8       Synchronization Byte 0-7     1       Transport error indicator (TE)                                  8     1       Payload Unit start indicator (PI)                                  9     1       Transport priority (TP)                                  0xA     13      Program ID (PID) Hex bits                                  0xB-0x17     2       transport scrambling control (SC)                                  0x18-0x19     2       adaptation field control (AFC)                                  0x1A-0x1B              00 - reserved              01 - no adaptation field only payload              10 - no payload, only adaptation field              11 - both     4       continuity counter   0x1C-0x1F     If Adaptation field present, then:     8       Adaptation field length                                  0-7     1       discontinuous time sequence indicator                                  8     1       random indicator     9     1       elementary element   0xA     5       flags bits indicating the presence of:                                  0xB-oxF              1 PCR flag          0xB              2 OPCR flag              3 XXXX flag              4 splicing point flag              5 XXXX flag     42      PCR (Program Clock reference)                                  0x10     ______________________________________

Note that a PCR is present when both bit 0×1A in the first word and bit 0×1B in the second word are asserted. A discontinuous PCR is present when bit 0×1a in the first word is set and bit 8 in the second word is set in the second word. Each of multiple program streams multiplexed on the single multimedia transport system stream has a program identification (PID). The PID is associated with any TS packet that contains the program clock reference (PCR).

It should be understood that each stream to be transmitted has a state associated with it that can be expressed in a number of formats. A particular format is not important, but the following information must be derivable from whatever is saved. The following TABLE 2 provides definitions of state information used with the segmentation process of the invention as illustrated and described with respect to FIGS. 17-23, inclusive.

                  TABLE 2     ______________________________________     N = Negiotated maximum number of TS packets in an AAL-5     frame for this session;     RCOUNT = count of remaining 32-bit words in block;     FCount = count of remaining 32-bit words of data to be     sent in the current AAL-5 frame;     TSPcount = the count of transmitted TS packets;     Flen = Data bytes in this AAL-5 frame;     PCR.sub.-- Offset = the number added to a BASE value (described     below) which produces the current time in the scale of     the current session's PCR;     Saved.sub.-- PCR = the target transmit time;     CRC-32res = The residual result of a cyclic redundancy     check CRC-32 calculation for the AAL-5 frame;     Record.sub.-- transmit.sub.-- time (Boolean) = check of whether the     PCR.sub.-- offset needs to be updated on the transmission of     the current AAL-5 frame;     Check.sub.-- PCR (Boolean) = check of whether the PCR saved     needs to be compared before transmitting the last cell     of the AAL-5 frame;     PCR.sub.-- State (Boolean) = check of whether a PCR is being     processed;     PID = the PID associated with the PCRs being timed; and     PCR.sub.-- wait.sub.-- count = how many cells have been transmitted     since the last PCR.     ______________________________________

Segmenter 90 includes a base rate counter which counts at the same base rate as the PCRs (scaling is possible, but not included for simplicity of description), where the value of this base rate counter is referred to as BASE. Segmenter 90 includes a local variable, Wrem, which counts the number of 32-bit words remaining to be sent in this ATM Cell. Segmenter 90 includes a 32-bit storage location Data₋₋ Word for storing a word transmitted to the transmission and distribution network 12. In FIGS. 17-23, WRITE is used to indicate the transmission of data on the output from the server to the transmission and distribution network 12 and READ is used to indicate the reading of the data associated with the session or stream.

Referring now to FIGS. 17-23, there are shown sequential steps for data segmentation performed by the cell segmenter 90 in accordance with an alternative method of the present invention. A feature of the alternative segmentation method is that a multiple program multimedia data stream is transmitted with accurate timing using minimal use of system resources. In the alternative segmentation method of FIGS. 17-23, the transmission timing of the MPEG-2 data stream as illustrated in FIG. 7 is used with the PID being significant as well as the PCR and format bits. Recognizing that in the MPEG-2 program stream, at least one TS 188-byte packet for each PID includes a PCR every 100 milliseconds, one PID is chosen as a reference for timing the MPEG-2 data stream. Timeout counters are associated with each virtual circuit to check that the 100 millisecond timeout limit is not exceeded. To time one hundred milliseconds on a connection that has a bandwidth allocation of 6 Megabits/second, counting up to 1415 cell transmission opportunities without a PCR being detected indicates that the current PID is not active or has dropped out of the stream. Then a new PID is selected for the next TS packet with a PCR and the new PID is saved and associated with that stream to check for future PCRs. No modifications are needed in the data supply and cell scheduler processes.

In FIG. 17, the sequential steps begin at a block 1700 with waiting for a schedule request B from scheduler 92. Then a session is identified at a block 1702 and the session state data is loaded as indicated at a block 1704. Next the local variable, Wrem, which counts the number of 32-bit words remaining to be sent in this ATM cell is assigned an initial value of 12 (48 bytes/ATM cell)/(4 bytes/word) as indicated at a block 1706. Then FCOUNT, the count of remaining 32-bit words of data to be sent in the current AAL-5 frame, and FLEN, the bytes in this AAL-5 frame, are compared with zero as indicated at a decision block 1706. If FCOUNT and FLEN are zero, then RCOUNT, the count of remaining 32-bit words in block, is compared with zero to determine whether the current data block is finished as indicated at a decision block 1710.

If RCOUNT equals zero, then the sequential operations continue with a block 1800 in FIG. 18 as indicated at a block 1712. Otherwise, when RCOUNT is determined not to equal zero at block 1710, then FCOUNT is assigned to the minimum value of RCOUNT or N*47 as indicated at a block 1714, where N represents the negotiated maximum number of TS packets in an AAL-5 frame for this session and each TS packet includes 47 words. Next RCOUNT is updated equal to RCOUNT--FCOUNT as indicated at a block 1716. Then it is determined if FCOUNT is less than or equal to 10 as indicated at a decision block 1718. If determined that FCOUNT is less than or equal to 10 at block 1718, then the sequential steps continue at FIG. 19 as indicated at a block 1720. Otherwise, if determined that FCOUNT is not less than or equal to 10, then the sequential operations continue with FIG. 20 as indicated at a block 1722. Then segmenter 90 stores the session state as indicated at a block 1724. Then the sequential operations return to block 1700 to wait for an event B from the scheduler 92.

Referring to FIG. 18, after it is determined that the current data block is finished or RCOUNT equals zero at decision block 1710, then segmenter 90 gets the next data block as indicated at a block 1800. Then RCOUNT is updated as indicated at a block 1802. Next segmenter 90 checks if the available data is less than a threshold value as indicated at a decision block 1804. If so, then more data is requested (line E in FIG. 8) as indicated at a block 1806. Then the next data block is prepared as indicated at a block 1808. Then the sequential operations continue at block 1714 in FIG. 17 to update the FCOUNT.

Referring to FIG. 19, when the FCOUNT of less than or equal to 10 is identified at decision block 1718 in FIG. 17, then segmenter 90 checks if it is the time to send at a decision block 1900. If not the time to send, then a reschedule request at line C is applied to the scheduler 92 as indicated at a block 1902. If the time to send, then segmenter forms the cell and transmits by first writing the AAL5 header with end of frame set as indicated at a block 1904. Then it is determined whether the FCOUNT is greater than zero as indicated at a decision block 1906. If so, then the segmenter 90 reads the data word and writes the data word to the output and updates CRC-32res using the data from the data word or writes collecting CRC-32 data word to network 12 and updates FCOUNT, Wrem and Flen as indicated at a block 1908.

When FCOUNT is greater than zero, then it is determined whether the Wrem is greater than two as indicated at a decision block 1910. If Wrem is greater than two, then segmenter 90 writes collecting CRC-32 data word and Wrem updating is provided as indicated at a block 1912. Otherwise when Wrem is two or less, then segmenter 90 writes collecting CRC-32 2-bytes of zeros as filler, writes collecting CRC-32 Flen in 2-bytes, write CRC-32 in 4-bytes, and sets Flen equal to zero and Check-PCR to false as indicated at a block 1914. Next segmenter 90 checks the record₋₋ transmit₋₋ time to determine whether the PCR₋₋ offset needs to be updated on the transmission of the current AAL-5 frame as indicated at a decision block 1916. If true, then PCR-Offset is updated equal to save₋₋ PCR less the BASE value and the Record₋₋ transmit₋₋ time is set to false as indicated at a block 1918. Then the sequential operations return to block 1712 in FIG. 17 to store the session state information.

Referring now to FIG. 20, when an FCOUNT of greater than 10 is identified at block 1718 in FIG. 17, then it is determined whether the PCR saved needs to be compared before transmitting the last cell of the AAL-5 frame and if the FCOUNT is less than 22 as indicated at a decision block 1900. If so, then a reschedule request C is provided to the transmission session scheduler 92 as indicated at a block 2002. Otherwise and after the reschedule request C is sent at block 2002, then it is determined whether Wrem and FCOUNT are greater than zero as indicated at a decision block 2004. If true, then segmenter 90 reads the data word and writes collecting CRC-32 data word to the network 12, updates Flen, FCOUNT, Wrem and calculates an OFFSET as indicated at a block 2006. The calculated OFFSET, equals the modulus of Flen, 188 and the remainder divided by 4 or MOD(Flen, 188)/4 which indicates the offset in the current TS packet being processed.

Then the OFFSET is compared with 1 as indicated at a decision block 2008. If the OFFSET equals 1, then the sequential steps continue with FIG. 21 as indicated at a block 2010. Otherwise, the OFFSET is compared with 2 and a check for a PCR being processed (PCR₋₋ State) is made as indicated at a decision block 2012. If the OFFSET equals 2 and a PCR is being processed, then the sequential steps continue with FIG. 22 as indicated at a block 2014. Otherwise the OFFSET is compared with 3 and a check for a PCR being processed (PCR₋₋ State) is made as indicated at a decision block 2016. If the OFFSET equals 3 and a PCR is being processed, then the sequential steps continue with FIG. 23 as indicated at a block 2018. Then the sequential steps return to block 2004 to again determine whether Wrem and FCOUNT are greater than zero. When determined that both Wrem and RCOUNT are not greater than zero at decision block 2004, then it is determined if Wrem is greater than zero as indicated at a decision block 2020. If determined that Wrem is greater than zero, then segmenter 90 writes collecting CRC-32 1 word of zero and updates Wrem as indicated at a block 2022. Otherwise when determined that Wrem is not greater than zero, then the sequential operations return to block 1712 in FIG. 17 to store the session state information.

Referring now to FIG. 21, when the identified OFFSET equals 1 at block 2008 in FIG. 20, then the number of cells that have been transmitted since the last PCR, PCR₋₋ wait₋₋ count is updated as indicated at a block 2100. Then the PCR₋₋ wait₋₋ count is compared with the transmission bandwidth in cells per 100 Msec as indicated at a decision block 2102. When determined that the PCR₋₋ wait₋₋ count is greater than the transmission bandwidth at block 2102 which indicates that the PID is not active and a new PID needs to be chosen, then the current PID associated with the PCRs being transmitted is set to null as indicated at a block 2104. After the PID is assigned to null at block 2104 and when determined that the PCR₋₋ wait₋₋ count is less than or equal to the transmission bandwidth at block 2102, then the TS packet data word bit 0×1A is checked as indicated at a decision block 2106. When determined that the TS packet data word bit 0×1A is not set at block 2106, then the PCR₋₋ State is set to 0 or false indicating that a PCR is not being processed as indicated at a block 2112.

When determined that the TS packet data word bit 0×1A is set at block 2106, then the PID is compared with null as indicated at a decision block 2108. When determined that the PID is equal to null at block 2108, then the PID is assigned to the current frame PID and the Record₋₋ transmit₋₋ time is set to 1 or true as indicated at a block 2114. The Record₋₋ transmit₋₋ time is set to true so that the offset will be updated on the transmission of the next AAL-5 frame containing a PCR with the new PID assigned for timing the stream. When determined that the PID is not equal to null at block 2108, then the PID is compared with a saved frame PID as indicated at a decision block 2110.

After the PID is set to the current frame PID and the Record₋₋ transmit₋₋ time is set to true at block 2114 and when determined that the PID is the stored frame PID at block 2110, then the PCR₋₋ State is set to 1 or true indicating that a PCR is being processed as indicated at a block 2116. When determined that the PID is not the stored frame PID at block 2110, then the PCR₋₋ State is set to 0 or false indicating that a PCR is not being processed as indicated at a block 2112. After the PCR₋₋ State is set to false at block 2112 or is set to true at block 2116, then the sequential operations return to block 2004 in FIG. 20 to again determine whether Wrem and FCOUNT are greater than zero.

Referring now to FIG. 21A, there is shown an alternative arrangement for identifying a time interval following an identified PCR associated with the selected program identification PID. In FIG. 21A, as compared to FIG. 21, sequential steps 2100 and 2102 are eliminated and replaced by a decision block 2102A. In FIG. 21A, the same reference numbers are used for identical Steps as in FIG. 21. When the identified OFFSET equals 1 at block 2008 in FIG. 20, then the target transmission time (TTT) minus the BASE value is compared with a predetermined time value, 100 Msec as indicated at a decision block 2102A. When determined at decision block 2102A that the TTT minus Base is greater than 100 Msec, indicating that a new PID needs to be chosen, then the current PID associated with the PCRs being transmitted is set to null as indicated at the block 2104. Otherwise, when determined at decision block 2102A that the TTT minus Base is less than or equal to 100 Msec, then the TS packet data word bit 0×1A is checked as indicated at decision block 2106.

Referring now to FIG. 22, when the identified OFFSET equals 2 and the PCR₋₋ State is 1 indicating that a PCR is being processed at block 2012 in FIG. 20, then the TS packet data word bit 8 is checked as indicated at a decision block 2200. Referring also to FIG. 16, the TS packet data word 2 bit 8 is the discontinuous time sequence indicator. When determined that the data word bit 8 is set, then the Record₋₋ transmit₋₋ time is set to true as indicated at a block 2202 so that the PCR₋₋ Offset will be updated at block 1918 in FIG. 19. Then the PCR₋₋ Save₋₋ upper is assigned to the data word₋₋ lower as indicated at a block 2204. Then the sequential operations return to block 2004 in FIG. 20 to again determine whether Wrem and FCOUNT are greater than zero.

Otherwise, when determined that the TS packet data word 2 bit 8 is not set at block 2200, then the TS packet data word bit 0×B is checked as indicated at a decision block 2206. In FIG. 16, the TS packet data word 2 bit 0×B is the adaptation field flag indicating the presence of the PCR. When determined that the TS packet data word 2 bit 0×B is set at block 2206, then the Check₋₋ PCR is set to 1 or true as indicated at a block 2208. Check₋₋ PCR set to true indicates that the PCR saved or target transmit time needs to be updated on the transmission of the current AAL-5 frame with a reschedule request C generated at block 20.02 in FIG. 20. Then the PCR₋₋ Save₋₋ upper is assigned to the data word₋₋ lower at block 2204. When determined that the TS packet data word 2 bit 0×B is not set at block 2206, then the PCR₋₋ State is set to 0 or false indicating that a PCR is not being processed as indicated at a block 2210, then the sequential operations return to block 2004 in FIG. 20 to again determine whether Wrem and FCOUNT are greater than zero.

Referring now to FIG. 23, when the identified OFFSET equals 3 and the PCR₋₋ State is 1 indicating that a PCR is being processed at block 2016 in FIG. 20, then segmenter 90 updates the saved PCR as indicated by PCR₋₋ Save (lower):=data word(upper), sets the PCR₋₋ State to 0 or false. RCOUNT is calculated by adding a value TEMP equal to FCOUNT-44, FCOUNT is set to 44 and the PCR₋₋ wait₋₋ count is set to zero as indicated at a block 2300. The PCR₋₋ wait₋₋ count of zero indicates that 0 cells have been transmitted since the last PCR. Next segmenter 90 checks the state of check₋₋ PCR to determine whether the PCR saved needs to be compared before transmitting the last cell of the AAL-5 frame as indicated by a decision block 2302. When check₋₋ PCR is true, then the target transmission time (TTT) is set to PCR₋₋ Offset minus Save₋₋ PCR as indicated at a block 2304. Otherwise when determined that check₋₋ PCR is false at block 2302 and after the target transmission time is set at block 2304, then the sequential operations return to block 2004 in FIG. 20 to again determine whether Wrem and FCOUNT are greater than zero.

The segmenter algorithm of the invention as illustrated and described with respect of FIGS. 17-23 is represented as follows in TABLE 3:

                  TABLE 3     ______________________________________     DO forever {     Wait for event B from scheduler;     Identify session from B;     Load state variables for session;     Wrem := 12;     If ((FCount == 0) and Flen == 0) {     If (Rcount == 0) {     get next data block;     update Rcount;     if (Data available < threshold)             request more data "E";     prepare next data block;     FCount := MIN(Rcount, (N * 47)); /* Note, N     can be saved as N*47 to avoid     multiplication */     Rcount := Rcount - FCount;     }     If FCount < 10 {/*Last cell of frame */     WRITE AAL5 header with User Indicate Bit Set;     While (FCount > 0) {     READ data.sub.-- word;     WRITE collecting CRC-32 data.sub.-- word;     FCount := FCount - 1;     Wrem := Wrem - 1;     Flen := Flen + 4;     }     While ( Wrem > 2 ) {     Write collecting CRC-32 1 word of             zero as filler;             Wrem := Wrem - 1;     }     Write collecting CRC-32 2 bytes of zeros as     filler;     Write collecting CRC-32 Flen in 2 bytes;     Write CRC-32 in 4 bytes;     Flen = 0;     Check.sub.-- PCR := FALSE;     If (Record.sub.-- transmit.sub.-- time = TRUE) {     PCR.sub.-- Offset := Save.sub.-- PCR - BASE;     Record.sub.-- transmit.sub.-- time := FALSE;     }     } else {     While (((Wrem > 0) and (FCount > 0)) {     READ Data.sub.-- Word;     WRITE collecting CRC-32 Data-Word;     Flen := Flen + 4;     Wrem := Wrem - 1     FCount := FCount - 1;     If (MOD(Flen,188)/4 == 1) {     PCR.sub.-- wait.sub.-- count = PCR.sub.-- wait.sub.-- count + 4;     if ( PCR.sub.-- wait.sub.-- count > transmission bandwidth     in cells/100 milliseconds ) {     PID := NULL;     }     If ( Data.sub.-- word bit Ox1a is set ) {     If (PID == NULL) {             PID := Frame PID;             Record.sub.-- Transmit.sub.-- time := TRUE;             PCR.sub.-- State := 1;             } else if (PID == Frame PID) {             PCR.sub.-- State := 1;             } else {             PCR.sub.-- State := 0;             }     } else     PCR.sub.-- State := 0;     }     }     If ((MOD(Flen,188)/4 == 2) and (PCR.sub.-- State == 1)) {     If ( Data.sub.-- word bit 8 is set ) {     Record.sub.-- transmit.sub.-- time :- TRUE;     PCR.sub.-- Save.sub.-- upper := Data.sub.-- word.sub.-- lower;     } else if (Data.sub.-- word bit 0x8 is set ) {     Check.sub.-- PCR := TRUE;     PCR.sub.-- Save.sub.-- upper :- Data.sub.-- word.sub.-- lower;     } else PCR.sub.-- State := 0;     }     If ((MOD(Flen,188)/4 == 3) and PCR.sub.-- State == 1 )) {     PCR.sub.-- Save.sub.-- lower := Data.sub.-- word.sub.-- upper;     PCR.sub.-- State :=0;     Temp       := FCount - 44;     Rcount     := Rcount + Temp;     FCount     := 44;     PCR.sub.-- Wait.sub.-- count := 0;     TTT := PCR.sub.-- Offset - Save.sub.-- PCR;     }     }     While (Wrem > 0) {     Write Collecting CRC-32 1 word of zero as filler;     Wrem := Wrem -1;     }      }      }      Save state variables for session;     }     ______________________________________

It should be noted that the present invention can be used with other time encoding protocols, and the stream being transmitted can be encoded at variable rate as well as fixed rate.

While the present invention has been described with reference to the details of the embodiments of the invention shown in the drawing, these details are not intended to limit the scope of the invention as claimed in the appended claims. 

What is claimed is:
 1. Apparatus for segmenting a multiple program multimedia digital data stream for transmission over a distribution communications network, each program multimedia digital data stream including sequential transport system (TS) packets with at least one program clock reference (PCR) included within a set time interval and a program identification (PID) associated with the PCRs comprising:means for decoding said TS packets to identify the program clock references (PCRs); means for identifying a selected number N of TS packets; means for segmenting said multimedia digital data stream into frames responsive to both said identified number N of TS packets and said identified PCR; means for selecting a program identification (PID) associated with one of the PCRs for timing the transmission of segmented multiple program multimedia digital data stream; means for identifying a time interval following an identified PCR associated with said selected program identification PID; and means for comparing said identified time interval with the set time interval between the program clock references (PCRs); and means responsive to said identified time interval being greater than the set time interval for selecting a new program identification (PID) associated with one of the PCRs for timing the transmission of segmented multiple program multimedia digital data stream.
 2. Apparatus for segmenting a multiple program multimedia digital data stream as recited in claim 1 wherein said means for segmenting said multimedia digital data stream into frames responsive to both said identified number N of TS packets and said identified PCR include means for transforming said multimedia digital data stream TS packets directly into fixed size Asynchronous Transfer Mode (ATM) cells; said ATM cells being transmitted over the distribution communications network and being reassembled into said multimedia digital data stream frames by a decoder/receiver coupled to the network.
 3. Apparatus for segmenting a multiple program multimedia digital data stream as recited in claim 2 wherein said means for identifying said time interval following said identified PCR associated with said selected program identification PID include counter means for identifying a number of said ATM cells transmitted following said identified PCR.
 4. Apparatus for segmenting a multiple program multimedia digital data stream as recited in claim 1 wherein said means for identifying said time interval following said identified PCR associated with said selected program identification PID include means for comparing the result of a target transmission time minus a base rate counter value with the set time interval.
 5. Apparatus for segmenting a multiple program multimedia digital data stream as recited in claim 1 further include means responsive to said means for selecting a new PID for updating an offset value, said offset value used for timing the transmission of a digital data stream containing PCRs.
 6. A method for segmenting a multimedia data stream for transmission over a distribution communications network, said multimedia data stream including sequential transport system (TS) packets with at least one program clock reference (PCR) included within a set time interval, said method comprising the steps of:decoding said TS packets to identify the program clock references (PCRs); identifying a selected number N of TS packets; and segmenting said multimedia digital data stream into frames responsive to both said identified selected number N of TS packets and said identified PCR; selecting a program identification (PID) associated with one of the PCRs for timing the transmission of segmented multiple program multimedia digital data stream; identifying a time interval following an identified PCR associated with said selected program identification PID; comparing said identified time interval with the set time interval between the program clock references (PCRs); and selecting a new program identification (PID) associated with one of the PCRs for timing the transmission of segmented multiple program multimedia digital data stream responsive to said identified time interval being greater than the set time interval.
 7. A method for segmenting a multiple program multimedia digital data stream as recited in claim 6 wherein the steps of selecting said PID and selecting said new PID include the step of decoding said TS packets to identify the current PID associated with one of said identified PCRs.
 8. A method for segmenting a multiple program multimedia digital data stream as recited in claim 6 wherein said step of segmenting said multimedia digital data stream includes the step of transforming said multimedia digital data stream TS packets directly into fixed size Asynchronous Transfer Mode (ATM) cells.
 9. A method for segmenting a multiple program multimedia digital data stream as recited in claim 8 wherein said step of identifying said time interval includes the step of counting a number of said ATM cells transmitted following said identified PCR.
 10. A method for segmenting a multiple program multimedia digital data stream as recited in claim 6 wherein said step of identifying said time interval includes the step of comparing the result of a target transmission time minus a base rate counter value with the set time interval.
 11. A method for segmenting a multiple program multimedia digital data stream as recited in claim 8 further includes the step of updating an offset value responsive to selecting said new PID, said offset value used for timing the transmission of a digital data stream containing PCRs.
 12. A system for communicating a stream of multiple program multimedia digital data comprising:a distribution communications network; multimedia server means for receiving and segmenting the multiple program multimedia digital data stream and transmitting said segmented multiple program multimedia digital data stream over said distribution communications network; said multimedia server means including segmenting means for segmenting said stream into frames responsive to both an identified selected number N of TS packets and an identified PCR and means for selecting a program identification (PID) associated with one of the PCRs for timing the transmission of segmented multiple program multimedia digital data stream; and receiver means coupled to said distribution communications network for receiving the multimedia digital data stream. 